package org.phoenixframework.api.rbac.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.phoenixframework.common.entity.SysAuthority;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统权限表 服务类
 * </p>
 *
 * @author doublelife
 * @since 2021-05-08
 */
public interface ISysAuthorityService extends IService<SysAuthority> {

    List<String> findAuthorityValueByUserId(Long sysUserId);

    List<JSONObject> listAuthorities(Long sysUserId);

    Map<String, Object> findAuthoritiesByRoleId(Long roleId);

    boolean removeChildrenById(Long id);
}
